package com.example.springboott1.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import javafx.beans.DefaultProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "adminuser")
public class AdminUser {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    @TableField(value = "password")
    private String userpws;
    @TableField(value = "nickname")
    private String zcname;
    @TableField(value = "picture")
    private String pic;
    @TableField(fill = FieldFill.INSERT)
    private boolean pmone;
    @TableField(fill = FieldFill.INSERT)
    private boolean pmtwo;
    @TableField(fill = FieldFill.INSERT)
    private boolean pmthree;
//    @JsonIgnore
//    public String getUserpws() {
//        return userpws;
//    }
//
//    @JsonProperty
//
//    public void setUserpws(String userpws) {
//        this.userpws = userpws;
//    }
}
